package Java.ArraySort;

import java.lang.reflect.Array;
import java.util.Arrays;

public class Demo03 {
    public static void main(String[] args) {
        int[] array = {24,12,33,45,8,7,9,0,123,44,65,43,23};

        for (int i = 0; i < array.length-1; i++) {
            for (int j = 0; j < array.length-1-i; j++) {
                if (array[j] > array[j+1]) {
                    int temp = array[j];
                    array[j] = array[j+1];
                    array[j+1] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(array));
    }
}
